package com.sun.entity;

import com.thoughtworks.xstream.annotations.XStreamAlias;

import java.util.Map;

@XStreamAlias("xml")
public class LocationMessage extends Message{
	@XStreamAlias("Content")
	private String content;

	public LocationMessage(Map<String, String> map) {
		super(map);
		content = map.get("Label") + "\n当前位置经纬度为:" + "\n纬度:" + map.get("Location_X") + "\n经度:" + map.get("Location_Y");
		this.setMsgType("text");
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
}
